package com.qidian.mes.machine.controller;

import com.qidian.common.pojo.MESResult;
import com.qidian.mes.machine.service.MachineService;
import com.qidian.mes.pojo.Ledger;
import com.qidian.mes.pojo.Machine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 任超
 * Time 2024/10/22 15:58
 */
@RestController
@RequestMapping("/aooo")
@CrossOrigin
public class MachineController {

    @Autowired
    private MachineService machineService;

    @GetMapping("/list")
    public MESResult list(Machine machine, @RequestParam(defaultValue = "1")int page, @RequestParam(defaultValue = "10")int limit){
        return machineService.selectList(machine,page,limit);
    }
}
